package xyz.kongbai121.shop.auth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xyz.kongbai121.common.utils.R;
import xyz.kongbai121.shop.auth.vo.GiteeUserInfo;
import xyz.kongbai121.shop.auth.vo.UserLoginVo;
import xyz.kongbai121.shop.auth.vo.UserRegistVo;

@FeignClient("shop-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R oauthLogin(@RequestBody GiteeUserInfo giteeUserInfo);
}
